/**
 * http://code.google.com/p/gwt-spot
 * 
 * GWT-Spot -- Copyright 2008-2009
 *          -- by Dunkel, Ricardo
 *  
 */
package de.ricardodunkel.gwtspot.client.api.ui.common;

import com.google.gwt.user.client.ui.DialogBox;

/**
 * Common dialog utility.
 * 
 * @author Dunkel, Ricardo
 * 
 * @version 0.1
 * 
 */
public class DialogUtility extends WidgetUtility {

	/**
	 * Does create a basic {@link DialogBox}.
	 * 
	 * @param title  A title for box.
	 * @param text  A text to set as default.
	 * @param style  A style which may be used initially.
	 * 
	 * @return  A basic {@link DialogBox} instance.
	 */
	public static DialogBox createDialogBox(String title, String text, String style) {
		DialogBox db = new DialogBox();
		setWidgetProperties(db, title, style);
		setWidgetText(db, text);
		return db;
	}
	
}
